Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IntervalArray<T> Class / FillIfEmpty Method
The start index of range.
The length of range.
The value to fill.


In This Topic
    FillIfEmpty Method
    In This Topic
    Fills a range of array with a specified value. Only empty element will be filled.
    Syntax
    'Declaration
     
    
    Public Function FillIfEmpty( _
       ByVal index As Integer, _
       ByVal length As Integer, _
       ByVal value As T _
    ) As Integer
    'Usage
     
    
    Dim instance As IntervalArray(Of T)
    Dim index As Integer
    Dim length As Integer
    Dim value As T
    Dim value As Integer
     
    value = instance.FillIfEmpty(index, length, value)
    public int FillIfEmpty( 
       int index,
       int length,
       T value
    )

    Parameters

    index
    The start index of range.
    length
    The length of range.
    value
    The value to fill.

    Return Value

    An System.Int32 value represents the total numbers of element has been filled.
    See Also